// pages/classify/classify.js
const app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    classifyId: '100',
    recommendContent: [],
    product:[]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
     this.setData({
       recommendContent: app.globalData.category
     })
    this.setData({
      product: app.globalData.productInfor
    })
    
  },
  goShop: function (event) {
    app.globalData.productIndex = event.currentTarget.id;

    wx.navigateTo({
      url: '../shop/shop'
    })
  },
  chooseClassify: function(event) {
    this.setData({
      classifyId: event.currentTarget.id
    })
  }
})